package com.Design.Visitor.old;

/**
 * @Author Lc
 * @Date 2023/9/30
 * @PackageName: com.Design.Visitor
 * @ClassName: Man
 * @Description:
 */

public class Man extends Person {
    @Override
    public void getConclusion() {
        if(action.equals("成功")){
            System.out.println(this.getClass().getSimpleName() + this.action + "时,背后多半有一个伟大的女人");
        }else if(action.equals("失败")){
            System.out.println(this.getClass().getSimpleName()  + this.action + "时,闷头喝酒,谁也不用劝");
        }else if(action.equals("恋爱")){
            System.out.println(this.getClass().getSimpleName()  + this.action + "时,凡是不懂也要装懂");
        }
    }
}
